package com.ym.service.impl;

import com.ym.dao.FaceDao;
import com.ym.entity.User;
import com.ym.service.IFaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FaceServiceImpl implements IFaceService {

    @Autowired
    private FaceDao facedao;

    @Override
    public List<User> selectAllUsers() {
        return facedao.selectAllUsers();
    }

    @Override
    public int save(User user) {
        return facedao.save(user);
    }

    @Override
    public User queryInfoByUsername(String username) {
        return facedao.queryInfoByUsername(username);
    }
}
